<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="../css/aui.2.0.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui-flex.css" />
    <style>
    </style>
</head>
<style>
    .setting:before {
        content: url(../image/setting.png);
    }

    .home:before {
        content: url(../image/home.png);
    }

    .refresh:before {
        content: url(../image/refresh.png);
    }

    .company:before {
        content: url(../image/company.png);
    }

    .pa-title {
        font-size: 17px;
        color: black;
        font-weight: bold;
    }

    .pa-title-content {
        font-size: 17px;
        color: black;
    }

    body {
        background-color: #D9D8DB;
    }

    .pa_work_order {
        background-color: #254060;
        margin-left: 1%;
        border-radius: 5px;
        height: 205px;
        color: white;
    }

    .pa_person {
        background-color: #254060;
        border-radius: 5px;
        height: 100px;
        color: white;
    }

    .pa_but_top {
        margin-top: 14px;
    }

    .pa_but_left {
        background-color: #254060;
        border-radius: 5px;
        height: 75px;
        line-height: 75px;
        font-size: 25px;
        color: white;
        text-align: center;
    }

    .pa_but_right {
        background-color: #254060;
        border-radius: 5px;
        height: 75px;
        line-height: 75px;
        margin-left: 2%;
        font-size: 25px;
        color: white;
        text-align: center;
    }

    p {
        font-size: 20px;
        color: white;
        font-weight: bold;
    }

    .pa_content_font {
        margin-left: 5%;
        font-size: 15px;
    }

    .pa_work_order_right {
        border-left: 1px solid white;
        padding-left: 1%;
        padding-top: 1%;
        width: 65%;
        height: 60%;
        float: left;
        font-size: 15px;
    }

    .pa_work_sl {
        background-color: #254060;
        margin-left: 1%;
        border-radius: 5px;
        height: 254px;
        color: white;
    }

    table {
        width: 100%;
        table-layout: fixed;
        word-wrap: break-word;
    }

    td {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
</style>

<body>
    <header class="aui-bar aui-bar-nav" style="background-color: #D9D8DB">
        <div style="width: 10%;height: 60px;float: left;padding-top: 6px;">
            <a class="aui-pull-left aui-btn">
                <span class="aui-iconfont company"></span>
            </a>
        </div>
        <div style="width: 10%;height: 60px;float: left;">
            <div style="text-align: left;">
                <span class="pa-title">富晟安创</span>
            </div>
        </div>
        <div style="width: 65%;height: 60px;float: left;">
            <div style="width:18%; float: left; text-align: left;">
                <span class="pa-title-content" id="locationName"></span>
            </div>
            <div style="width:18%; float: left; text-align: left;">
                <span class="pa-title-content" id="workCenterName"></span>
            </div>
            <div style="width:24%; float: left; text-align: left;">
                <span class="pa-title-content" id="workCellName"></span>
            </div>
            <div style="width:40%; float: left; text-align: left;">
                <span class="pa-title-content" id="nowDate"></span>
            </div>
        </div>

        <div style="width: 5%;height: 50px;float: left;">
            <a class="aui-pull-right aui-btn" onclick="setting()">
                <span class="aui-iconfont setting"></span>
            </a>
        </div>
        <div style="width: 5%;height: 50px;float: left;">
            <a class="aui-pull-right aui-btn " onclick="refresh()">
                <span class="aui-iconfont refresh"></span>
            </a>
        </div>
        <div style="width: 5%;height: 50px;float: left;">
            <a class="aui-pull-right aui-btn" onclick="closeWin()">
                <span class="aui-iconfont home"></span>
            </a>
        </div>
    </header>
    <div class="aui-content">
        <div class="aui-flex-col aui-flex-center" style="margin-left: 1%;margin-right: 1%;">
            <div class="aui-flex-item-4">
                <div class="aui-flex-col pa_person">
                    <div class="aui-flex-item-12">
                        <p>人员信息</p>
                        <div class="pa_content_font">
                            <span>班&nbsp&nbsp组&nbsp&nbsp长：</span>
                            <span id="groupLeader"></span>
                        </div>
                    </div>
                    <div class="aui-flex-item-12">
                        <div class="pa_content_font">
                            <div style="float: left;"><span>上岗人员：</span></div>
                            <div
                                style="width: 190px; float: left; text-overflow: ellipsis;overflow: hidden;white-space: nowrap;">
                                <span id="empName"></span>
                            </div>
                        </div>
                    </div>
                    <div class="aui-flex-item-12">
                        <div class="pa_content_font">
                            <span>技能等级：</span>
                            <span id="skillLevel"></span>
                        </div>
                    </div>
                </div>
                <div class="aui-flex-col pa_person" style="margin-top: 5px;">
                    <div class="aui-flex-item-12">
                        <p>操作记录</p>
                        <div class="pa_content_font" id="operationRecord" style="height:65px; overflow: auto;">
                        </div>
                    </div>
                </div>
            </div>
            <div class="aui-flex-item-8">
                <div class="aui-flex-col pa_work_order">
                    <div class="aui-flex-item-12" onclick="gdqhClick()">
                        <p>工单信息</p>
                        <div class="pa_content_font" style=" width:30%;float: left;">
                            <div style="margin-top: 30%;">
                                <span>计划数量：</span>
                                <span class="aui-text-warning" id="planQty"></span>
                            </div>
                            <div>
                                <span>完成数量：</span>
                                <span class="aui-text-warning" id="completeQty"></span>
                            </div>
                        </div>
                        <div class="pa_work_order_right">
                            <div>
                                <span>工单编号：</span>
                                <span id="workOrderCode"></span>
                            </div>
                            <div>
                                <span>物料编码：</span>
                                <span id="mrlCode"></span>
                            </div>
                            <div>
                                <span>物料名称：</span>
                                <span id="mrlName"></span>
                            </div>
                            <div>
                                <span>合格数量：</span>
                                <span id="qualifyQty"></span>
                            </div>
                            <div>
                                <span>不良数量：</span>
                                <span id="unQualifyQty"></span>
                            </div>
                            <div style="display: none;">
                                <span>单件、批次追溯（0批次；1单件）：</span>
                                <span id="retrospectFlag"></span>
                            </div>
                        </div>
                        <div style="height: 30px;width: 80%;border: 1px solid gray; margin-left:10%;float: left;margin-top: 2.5%;"
                            id="workOrderProcess">
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="aui-flex-col aui-flex-center" style="margin-top: 1%;margin-left: 1%;margin-right: 1%;">
            <div class="aui-flex-item-4">
                <div class="aui-flex-item-6">
                    <div class="aui-flex-col pa_but_left">
                        <div class="aui-flex-item-12" onclick="openProductionHandover()">
                            生产交接
                        </div>
                    </div>

                    <div class="aui-flex-col pa_but_left pa_but_top">
                        <div class="aui-flex-item-12" onclick="openReport()">
                            生产报工
                        </div>
                    </div>

                    <div class="aui-flex-col pa_but_left pa_but_top">
                        <div class="aui-flex-item-12" onclick="openTakeUpPost()">
                            上岗离岗
                        </div>
                    </div>
                </div>
                <div class="aui-flex-item-6">
                    <div class="aui-flex-col pa_but_right">
                        <div class="aui-flex-item-12" onclick="openChk()">
                            开班点检
                        </div>
                    </div>
                    <div class="aui-flex-col pa_but_right pa_but_top">
                        <div class="aui-flex-item-12" onclick="openAndon()">
                            安灯呼叫
                        </div>
                    </div>

                    <div class="aui-flex-col pa_but_right pa_but_top">
                        <div class="aui-flex-item-12" onclick="openPreview()">
                            文件查阅
                        </div>
                    </div>
                </div>
            </div>
            <div class="aui-flex-item-8">
                <div class="aui-flex-col pa_work_sl">
                    <div class="aui-flex-item-12">
                        <p>物料信息</p>
                        <div style="height: 222px; overflow: auto;">
                            <table class="table" border="1px solid gray" cellspacing="0" cellpadding="0">
                                <thead>
                                    <tr style="text-align: center;color: white;font-size: 15px;height: 30px;">
                                        <!-- <td algin='center' style="width:7%">序号</td>
                                        <td algin='center' style="width:20%">子物料编码</td>
                                        <td algin='center' style="width:21%">子物料名称</td>
                                        <td algin='center' style="width:10%">装配数</td>
                                        <td algin='center' style="width:11%">应上料数</td>
                                        <td algin='center' style="width:11%">已上料数</td>
                                        <td algin='center' style="width:10%">剩余数</td> -->
                                        <td algin='center' style="width:7%">序号</td>
                                        <td algin='center' style="width:19%">子物料编码</td>
                                        <td algin='center' style="width:19%">子物料名称</td>
                                        <td algin='center' style="width:9%">装配数</td>
                                        <td algin='center' style="width:11%">总需求数</td>
                                        <td algin='center' style="width:14%">剩余需求数</td>
                                        <td algin='center' style="width:10%">库存数</td>
                                    </tr>
                                </thead>
                                <tbody id="tbodyHtml">
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="../script/public.js"></script>
<script type="text/javascript" src="../script/echarts.min.js"></script>
<script type="text/javascript">

    var equipUniqueId = "";   //设备唯一号
    var siteCode = "";        //工厂编码
    var siteName = "";        //工厂名称
    var locationName = "";    //车间名称
    var locationCode = "";    //车间编码
    var workCenterName = "";  //生产线名称
    var workCenterCode = "";  //生产线编码
    var workCellName = "";    //工位名称
    var workCellCode = "";    //工位编码
    var teamCode = "";        //班组编码
    var teamName = "";        //班组名称
    var shiftCode = "";       //班次编码
    var shiftName = "";       //班次名称
    var proddate = "";        //生产日期

    var pageParam = {};

    //初始化
    apiready = function () {
        //获取设备唯一号
        equipUniqueId = localStorage.getItem('equipUniqueId');

        document.getElementById("nowDate").innerHTML = getTimeCommon();

        //1:查询产线工位信息
        searchWorkCenterData();

        //当前时间刷新
        window.setInterval("getTime()", 1000);
    }

    //时间刷新
    function getTime() {
        document.getElementById("nowDate").innerHTML = getTimeCommon();
    }

    //查询产线工位信息
    function searchWorkCenterData() {
        var un = localStorage.getItem('un');
        var serverUrl = localStorage.getItem('serverUrl');
        var url = serverUrl + "/app/getProductionAssemblyCell";
        var data = {
            values: {
                clientCode: equipUniqueId,
                un: un,
            }
        };

        var params = new Object();
        params.url = url;
        params.dataType = 'json';
        params.method = 'post';

        ajaxForData(params, data, false, function (ret, err) {
            if (ret) {
                var data = JSON.stringify(ret);
                var myobj = eval("(" + data + ")");
                if (myobj.code == 0) {
                    document.getElementById("locationName").innerHTML = myobj.locationName;
                    document.getElementById("workCenterName").innerHTML = myobj.workCenterName;
                    document.getElementById("workCellName").innerHTML = myobj.workCellName;
                    locationName = myobj.locationName;
                    locationCode = myobj.locationCode;
                    workCenterName = myobj.workCenterName;
                    workCenterCode = myobj.workCenterCode;
                    workCellName = myobj.workCellName;
                    workCellCode = myobj.workCellCode;
                    siteName = myobj.siteName;
                    siteCode = myobj.siteCode;

                    //查询页面其他数据
                    searchInit();
                } else {
                    api.toast({
                        msg: myobj.message,
                        duration: 3000
                    });
                }
            } else {
                alert("网络连接超时!")
            }
        });
    }

    async function searchInit() {
        //1:查询人员信息
        await searchDutyPersonData();

        //2:工单信息
        await searchWorkOrderData();

        //3:BOM子物料信息线边库数据
        await searchMrlData();

        //4:查询操作记录
        await searchOperationRecord();

        //5:构造参数
        await createPageParam();

    }

    //查询人员信息
    function searchDutyPersonData() {
        return new Promise(resolve => {
            var un = localStorage.getItem('un');
            var serverUrl = localStorage.getItem('serverUrl');
            var url = serverUrl + "/app/getProductionAssemblyTake";
            var data = {
                values: {
                    workCenterCode: workCenterCode,
                    workCenterName: workCenterName,
                    sgFlag: "1",//上岗标识：0刷卡，1勾选
                    un: un,
                }
            };
            var params = new Object();
            params.url = url;
            params.dataType = 'json';
            params.method = 'post';

            ajaxForData(params, data, false, function (ret, err) {
                if (ret) {
                    var data = JSON.stringify(ret);
                    var myobj = eval("(" + data + ")");
                    if (myobj.code == 0) {
                        document.getElementById("groupLeader").innerHTML = myobj.groupLeader;
                        document.getElementById("empName").innerHTML = myobj.empName;
                        document.getElementById("skillLevel").innerHTML = myobj.skillLevel;

                        teamCode = myobj.teamCode;
                        teamName = myobj.teamName;
                        shiftCode = myobj.shiftCode;
                        shiftName = myobj.shiftName;
                        proddate = myobj.proddate;

                    } else {
                        api.toast({
                            msg: myobj.message,
                            duration: 3000
                        });

                        //清空人员信息
                        clear();
                    }
                    resolve();
                } else {
                    alert("网络连接超时!")
                    resolve();
                }
            });
        });
    }

    //清空人员上岗信息
    function clear() {
        document.getElementById("groupLeader").innerHTML = "";
        document.getElementById("empName").innerHTML = "";
        document.getElementById("skillLevel").innerHTML = "";
        teamCode = "";
        teamName = "";
        shiftCode = "";
        shiftName = "";
        proddate = "";
    }

    //查询操作记录
    function searchOperationRecord() {
        return new Promise(resolve => {
            var un = localStorage.getItem('un');
            var serverUrl = localStorage.getItem('serverUrl');
            var url = serverUrl + "/app/getAssemblyOperationRecord";
            var data = {
                values: {
                    workCenterCode: workCenterCode,
                    un: un,
                }
            };
            var params = new Object();
            params.url = url;
            params.dataType = 'json';
            params.method = 'post';

            ajaxForData(params, data, false, function (ret, err) {
                if (ret) {
                    var data = JSON.stringify(ret);
                    var myobj = eval("(" + data + ")");
                    if (myobj.code == 0) {

                        var list = eval(myobj.list);
                        var html = "";
                        for (var i = 0; i < list.length; i++) {
                            html += "<div>" + list[i].operationType + " " + list[i].opearationDate + "</div>";
                        }
                        document.getElementById("operationRecord").innerHTML = html;
                    } else {
                        api.toast({
                            msg: myobj.message,
                            duration: 3000
                        });
                    }
                    resolve();
                } else {
                    alert("网络连接超时!");
                    resolve();
                }
            });
        });
    }

    //查询工单信息
    function searchWorkOrderData() {
        return new Promise(resolve => {
            var un = localStorage.getItem('un');
            var serverUrl = localStorage.getItem('serverUrl');
            var url = serverUrl + "/app/getAssemblyWorkOrder";
            var data = {
                values: {
                    // workCellCode: workCellCode,
                    proddate: proddate,
                    workCenterCode: workCenterCode,
                    workCenterName: workCenterName,
                    shiftCode: shiftCode,
                    state: "开工",
                    un: un,
                }
            };
            var params = new Object();
            params.url = url;
            params.dataType = 'json';
            params.method = 'post';

            ajaxForData(params, data, false, function (ret, err) {
                if (ret) {
                    var data = JSON.stringify(ret);
                    var myobj = eval("(" + data + ")");
                    if (myobj.code == 0) {

                        var list = eval(myobj.list);
                        var workOrderProcess = 0;
                        if (list != null && list.length > 0) {
                            document.getElementById("planQty").innerHTML = list[0].planQty;
                            document.getElementById("completeQty").innerHTML = list[0].completeQty;
                            document.getElementById("workOrderCode").innerHTML = list[0].workOrderCode;
                            document.getElementById("mrlCode").innerHTML = list[0].mrlCode;
                            document.getElementById("mrlName").innerHTML = list[0].mrlName;
                            document.getElementById("qualifyQty").innerHTML = list[0].qualifyQty;
                            document.getElementById("unQualifyQty").innerHTML = list[0].unQualifyQty;
                            document.getElementById("retrospectFlag").innerHTML = list[0].retrospectFlag;

                            //进度
                            workOrderProcess = Math.round(list[0].completeQty / list[0].planQty * 100);

                        } else {
                            document.getElementById("planQty").innerHTML = '';
                            document.getElementById("completeQty").innerHTML = '';
                            document.getElementById("workOrderCode").innerHTML = '';
                            document.getElementById("mrlCode").innerHTML = '';
                            document.getElementById("mrlName").innerHTML = '';
                            document.getElementById("qualifyQty").innerHTML = '';
                            document.getElementById("unQualifyQty").innerHTML = '';
                            document.getElementById("retrospectFlag").innerHTML = '';
                        }

                        document.getElementById("workOrderProcess").innerHTML = '<div style="background-color:green; text-align: right;height:100%; width:'
                            + workOrderProcess + '%;"">' + workOrderProcess + '%</div>';


                    } else {
                        api.toast({
                            msg: myobj.message,
                            duration: 3000
                        });
                    }
                    resolve();
                } else {
                    alert("网络连接超时!")
                    resolve();
                }
            });
        });
    }

    //查询BOM子件线边库物料信息
    function searchMrlData() {
        return new Promise(resolve => {
            var workOrderCode = document.getElementById("workOrderCode").innerHTML;
            var un = localStorage.getItem('un');
            var serverUrl = localStorage.getItem('serverUrl');
            // var url = serverUrl + "/app/getAssemblyMrlStockFjData";  //工单上料数据
            var url = serverUrl + "/app/getAssemblyMrlStockData";
            var data = {
                values: {
                    workOrderCode: workOrderCode,
                    un: un,
                }
            };
            var params = new Object();
            params.url = url;
            params.dataType = 'json';
            params.method = 'post';

            ajaxForData(params, data, false, function (ret, err) {
                if (ret) {
                    var data = JSON.stringify(ret);
                    var myobj = eval("(" + data + ")");
                    if (myobj.code == 0) {

                        var html = "";
                        var list = eval(myobj.list);
                        if (list != null && list.length > 0) {

                            var overageQty = 0;
                            //遍历
                            for (var i = 0; i < list.length; i++) {
                                // html += "<tr style='text-align: center;color: white;font-size: 12px;'>";
                                // html += "<td name='index'>" + (i + 1) + "</td>";
                                // html += "<td name='mrlCode'>" + list[i].mrlcode + "</td>";
                                // html += "<td name='mrlName'>" + list[i].mrlname + "</td>";
                                // html += "<td name='qana'>" + list[i].qana + "</td>";
                                // html += "<td name='yslqty'>" + list[i].yslqty + "</td>";
                                // html += "<td name='slqty'>" + list[i].slqty + "</td>";
                                // overageQty = list[i].yslqty - list[i].slqty;
                                // if (overageQty > 0) {
                                //     html += "<td name='overageQty' style='background-color:red;'>" + overageQty + "</td>";
                                // } else {
                                //     html += "<td name='overageQty'>" + overageQty + "</td>";
                                // }
                                // html += "</tr>";

                                html += "<tr style='text-align: center;color: white;font-size: 14px;height: 25px;'>";
                                html += "<td name='index'>" + (i + 1) + "</td>";
                                html += "<td name='sitmCode'>" + list[i].sitmCode + "</td>";
                                html += "<td name='sitmName'>" + list[i].sitmName + "</td>";
                                html += "<td name='qana'>" + list[i].qana + "</td>";
                                html += "<td name='yslQty'>" + list[i].yslQty + "</td>";
                                html += "<td name='overageQty'>" + list[i].overageQty + "</td>";
                                if (parseFloat(list[i].stockQty) < parseFloat(list[i].overageQty)) {
                                    html += "<td name='stockQty' style='background-color:red;'>" + list[i].stockQty + "</td>";
                                } else {
                                    html += "<td name='stockQty'>" + list[i].stockQty + "</td>";
                                }
                                html += "</tr>";
                            }
                        }
                        $api.html($api.byId("tbodyHtml"), html);
                    } else {
                        $api.html($api.byId("tbodyHtml"), "");
                        api.toast({
                            msg: myobj.message,
                            duration: 3000
                        });
                    }

                    resolve();
                } else {
                    alert("网络连接超时!");
                    resolve();
                }
            });
        });
    }

    //工单切换
    function gdqhClick() {
        api.openWin({
            name: "productionAssemblyGdqh",
            url: 'productionAssemblyGdqh.html',
            pageParam: pageParam,
        });
    }

    //生产交接
    function openProductionHandover() {
        api.openWin({
            name: "productionAssemblyScjjZP",
            url: 'productionAssemblyScjjZP.html',
            pageParam: pageParam,
        });
    }

    //开班点检
    function openChk() {
        api.openWin({
            name: "productionAssemblyKbdd",
            url: 'productionAssemblyKbdd.html',
            pageParam: pageParam,
        });
    }

    //上岗离岗
    function openTakeUpPost() {
        api.openWin({
            name: "productionAssemblySglg",
            url: 'productionAssemblySglg.html',
            pageParam: pageParam,
        });
    }

    //安东
    function openAndon() {
        api.openWin({
            name: "productionAssemblyAndon",
            url: 'productionAssemblyAndon.html',
            pageParam: pageParam,
        });
    }

    //生产报工
    function openReport() {
        if (pageParam.workOrderCode == null || pageParam.workOrderCode == "" || pageParam.workOrderCode == undefined) {
            api.toast({
                msg: "工单号为空，请先开工！",
                duration: 3000
            });
            return;
        }
        if (pageParam.retrospectFlag == null || pageParam.retrospectFlag == "" || pageParam.retrospectFlag == undefined) {
            api.toast({
                msg: "工单未维护单件追溯还是批次追溯！",
                duration: 3000
            });
            return;
        }

        //批次追溯
        if (pageParam.retrospectFlag == "0") {
            api.openWin({
                name: "productionAssemblyScbg",
                url: 'productionAssemblyScbg.html',
                pageParam: pageParam,
            });

            //单件追溯
        } else {
            api.openWin({
                name: "productionAssemblyScbg_unique",
                url: 'productionAssemblyScbg_unique.html',
                pageParam: pageParam,
            });
        }
    }

    //文件预览
    function openPreview() {
        api.openWin({
            name: "productionAssemblyPreview",
            url: 'productionAssemblyPreview.html',
            pageParam: pageParam,
        });
    }

    //机台更换
    function openChangeEquip() {
        api.openWin({
            name: "productionAssemblyEquip",
            url: 'productionAssemblyEquip.html',
            pageParam: pageParam,
        });
    }

    //模具更换
    function openChangeMould() {
        api.openWin({
            name: "productionAssemblyMould",
            url: 'productionAssemblyMould.html',
            pageParam: pageParam,
        });
    }

    //设置按钮
    function setting() {
        var pageParam = api.pageParam;
        pageParam.name = "productionAssembly";
        //打开页面
        api.openWin({
            name: "settings",
            url: 'settings.html',
            pageParam: pageParam,
        });
    }

    //刷新按钮
    function refresh() {

        //获取设备唯一号
        equipUniqueId = localStorage.getItem('equipUniqueId');

        //1:查询产线工位信息
        searchWorkCenterData();
    }

    //构造传参map
    function createPageParam() {
        var workOrderCode = document.getElementById("workOrderCode").innerHTML;
        var retrospectFlag = document.getElementById("retrospectFlag").innerHTML;
        pageParam = {
            siteCode: siteCode,
            siteName: siteName,
            locationName: locationName,
            locationCode: locationCode,
            workCenterName: workCenterName,
            workCenterCode: workCenterCode,
            workCellName: workCellName,
            workCellCode: workCellCode,
            teamCode: teamCode,
            teamName: teamName,
            shiftCode: shiftCode,
            shiftName: shiftName,
            proddate: proddate,
            workOrderCode: workOrderCode,
            retrospectFlag: retrospectFlag,//单件追溯还是批次追溯：0批次，1单件
            rootName: "productionAssembly",
            name: "productionAssembly",
            sgFlag: "1",//上岗标识：0刷卡，1勾选
            cjFlag: "0",//是否按工位上岗查询：0否，1是
        }
    }

    //返回按钮
    function closeWin() {
        api.closeWin({});
    }
</script>

</html>